#!/bin/bash

readonly MAXCOUNT=10
declare -i index
index=0

: <<'END'

while [ $index -lt $MAXCOUNT ];do
	echo $RANDOM
	let index=index+1
done


readonly MIN=1
readonly MAX=10
index=0
while [ $index -lt $MAXCOUNT ]; do
	number=$RANDOM
	let "number %= $MAX"
	let "number += 1"
	index=$index+1
	echo $number
done

END

# random card
Suites=(Clubs Diamonds Hearts Spades)
Number=(2 3 4 5 6 7 8 9 10 Jack Queen King Ace)
len_suits=${#Suites[@]}
len_Number=${#Number[@]}

echo ${Suites[$((RANDOM%len_suits))]} ${Number[$((RANDOM%len_Number))]}